package com.example.dao;

import com.example.entity.Admin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author yinxin
 * @version 1.0
 * @Description:
 * @date 2022/2/1616:49
 */
public interface AdminDao {

    @Select("select * from Admin")
    List<Admin>  findAll();

    @Insert("insert into Admin(username,password) values (#{username},#{password})")
    int saveAdmin(Admin admin);

}
